package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.annotation.OperLog;
import com.ytjj.qmyx.admin.constants.SysLogConstants;
import com.ytjj.qmyx.admin.model.request.PlatfromStatisticsRequest;
import com.ytjj.qmyx.admin.service.PlatformStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * 
 * @Version 1.0
 *
 * 平台统计 模块
 **/
@RestController
@RequestMapping("/platformStatistics")
public class PlatformController {

    @Autowired
    private PlatformStatisticsService platformStatisticsService;

    @PostMapping("/platList")
    @OperLog(operModule = "平台统计管理", operDesc = "数据统计", operType = SysLogConstants.OPERATION_SELECT)
    public CommonResult getPlatList(@RequestBody PlatfromStatisticsRequest platfromStatisticsRequest) {
        return CommonResult.success(platformStatisticsService.getPlatList(platfromStatisticsRequest));
    }

}
